home *** CD-ROM | disk | FTP | other *** search
MacBinary | 1994-10-12 | 1.4 KB | [TEXT/MMCC] |
open in:
MacOS 8.1
|
Win98
|
DOS
view JSON data
|
view as text
This file was processed as: MacBinary
(archive/macBinary).
You can browse this item here: TrapAvailable.c
Confidence | Program | Detection | Match Type | Support
|
---|
66%
| dexvert
| Compact Compressed (Unix) (archive/compact)
| ext
| Supported |
10%
| dexvert
| MacBinary (archive/macBinary)
| fallback
| Supported |
1%
| dexvert
| Text File (text/txt)
| fallback
| Supported |
100%
| file
| MacBinary II, Wed Oct 12 01:14:08 1994, modified Wed Oct 12 01:14:08 1994, creator 'MMCC', type ASCII, 879 bytes "TrapAvailable.c" , at 0x3ef 382 bytes resource
| default (weak)
| |
99%
| file
| data
| default
| |
74%
| TrID
| Macintosh plain text (MacBinary)
| default
| |
25%
| TrID
| MacBinary 2
| default (weak)
| |
100%
| siegfried
| fmt/1762 MacBinary (II)
| default
| |
100%
| lsar
| MacBinary
| default
|
|
id metadata |
---|
key | value |
---|
macFileType | [TEXT] |
macFileCreator | [MMCC] |
hex view+--------+-------------------------+-------------------------+--------+--------+
|00000000| 00 0f 54 72 61 70 41 76 | 61 69 6c 61 62 6c 65 2e |..TrapAv|ailable.|
|00000010| 63 00 00 00 00 00 00 00 | 00 00 00 00 00 00 00 00 |c.......|........|
|00000020| 00 00 00 00 00 00 00 00 | 00 00 00 00 00 00 00 00 |........|........|
|00000030| 00 00 00 00 00 00 00 00 | 00 00 00 00 00 00 00 00 |........|........|
|00000040| 00 54 45 58 54 4d 4d 43 | 43 00 00 00 00 00 00 00 |.TEXTMMC|C.......|
|00000050| 00 00 00 00 00 03 6f 00 | 00 01 7e aa c1 21 20 aa |......o.|..~..! .|
|00000060| c1 21 20 00 00 00 00 00 | 00 00 00 00 00 00 00 00 |.! .....|........|
|00000070| 00 00 00 00 00 00 00 00 | 00 00 81 81 ab 08 00 00 |........|........|
|00000080| 2f 2f 0d 2f 2f 20 54 72 | 61 70 41 76 61 69 6c 61 |//.// Tr|apAvaila|
|00000090| 62 6c 65 2e 63 0d 2f 2f | 0d 2f 2f 09 46 72 6f 6d |ble.c.//|.//.From|
|000000a0| 20 53 79 6d 61 6e 74 65 | 63 27 73 20 54 48 49 4e | Symante|c's THIN|
|000000b0| 4b 20 52 65 66 65 72 65 | 6e 63 65 2c 20 77 68 69 |K Refere|nce, whi|
|000000c0| 63 68 20 69 6e 20 74 75 | 72 6e 20 67 6f 74 20 74 |ch in tu|rn got t|
|000000d0| 68 65 20 63 6f 64 65 20 | 66 72 6f 6d 20 61 6e 20 |he code |from an |
|000000e0| 41 70 70 6c 65 20 54 65 | 63 68 20 6e 6f 74 65 2e |Apple Te|ch note.|
|000000f0| 0d 2f 2f 0d 0d 23 69 6e | 63 6c 75 64 65 3c 54 72 |.//..#in|clude<Tr|
|00000100| 61 70 73 2e 68 3e 0d 23 | 69 6e 63 6c 75 64 65 3c |aps.h>.#|include<|
|00000110| 4f 53 55 74 69 6c 73 2e | 68 3e 0d 0d 23 64 65 66 |OSUtils.|h>..#def|
|00000120| 69 6e 65 20 54 72 61 70 | 4d 61 73 6b 20 30 78 30 |ine Trap|Mask 0x0|
|00000130| 38 30 30 0d 0d 73 68 6f | 72 74 20 4e 75 6d 54 6f |800..sho|rt NumTo|
|00000140| 6f 6c 62 6f 78 54 72 61 | 70 73 28 20 76 6f 69 64 |olboxTra|ps( void|
|00000150| 20 29 20 3b 0d 54 72 61 | 70 54 79 70 65 20 47 65 | ) ;.Tra|pType Ge|
|00000160| 74 54 72 61 70 54 79 70 | 65 28 73 68 6f 72 74 20 |tTrapTyp|e(short |
|00000170| 74 68 65 54 72 61 70 29 | 20 3b 0d 42 6f 6f 6c 65 |theTrap)| ;.Boole|
|00000180| 61 6e 20 54 72 61 70 41 | 76 61 69 6c 61 62 6c 65 |an TrapA|vailable|
|00000190| 28 73 68 6f 72 74 20 74 | 68 65 54 72 61 70 29 20 |(short t|heTrap) |
|000001a0| 3b 0d 0d 0d 73 68 6f 72 | 74 20 4e 75 6d 54 6f 6f |;...shor|t NumToo|
|000001b0| 6c 62 6f 78 54 72 61 70 | 73 28 20 76 6f 69 64 20 |lboxTrap|s( void |
|000001c0| 29 0d 7b 0d 09 69 66 20 | 28 4e 47 65 74 54 72 61 |).{..if |(NGetTra|
|000001d0| 70 41 64 64 72 65 73 73 | 28 5f 49 6e 69 74 47 72 |pAddress|(_InitGr|
|000001e0| 61 66 2c 20 54 6f 6f 6c | 54 72 61 70 29 20 3d 3d |af, Tool|Trap) ==|
|000001f0| 0d 09 09 09 4e 47 65 74 | 54 72 61 70 41 64 64 72 |....NGet|TrapAddr|
|00000200| 65 73 73 28 30 78 41 41 | 36 45 2c 20 54 6f 6f 6c |ess(0xAA|6E, Tool|
|00000210| 54 72 61 70 29 29 0d 09 | 09 72 65 74 75 72 6e 28 |Trap))..|.return(|
|00000220| 30 78 30 32 30 30 29 20 | 3b 0d 09 65 6c 73 65 0d |0x0200) |;..else.|
|00000230| 09 09 72 65 74 75 72 6e | 28 30 78 30 34 30 30 29 |..return|(0x0400)|
|00000240| 20 3b 0d 7d 0d 0d 54 72 | 61 70 54 79 70 65 20 47 | ;.}..Tr|apType G|
|00000250| 65 74 54 72 61 70 54 79 | 70 65 28 73 68 6f 72 74 |etTrapTy|pe(short|
|00000260| 20 74 68 65 54 72 61 70 | 29 0d 7b 0d 0d 09 69 66 | theTrap|).{...if|
|00000270| 20 28 28 74 68 65 54 72 | 61 70 20 26 20 54 72 61 | ((theTr|ap & Tra|
|00000280| 70 4d 61 73 6b 29 20 3e | 20 30 29 0d 09 09 72 65 |pMask) >| 0)...re|
|00000290| 74 75 72 6e 28 54 6f 6f | 6c 54 72 61 70 29 20 3b |turn(Too|lTrap) ;|
|000002a0| 0d 09 65 6c 73 65 0d 09 | 09 72 65 74 75 72 6e 28 |..else..|.return(|
|000002b0| 4f 53 54 72 61 70 29 20 | 3b 0d 0d 7d 0d 0d 42 6f |OSTrap) |;..}..Bo|
|000002c0| 6f 6c 65 61 6e 20 54 72 | 61 70 41 76 61 69 6c 61 |olean Tr|apAvaila|
|000002d0| 62 6c 65 28 73 68 6f 72 | 74 20 74 68 65 54 72 61 |ble(shor|t theTra|
|000002e0| 70 29 0d 7b 0d 0d 09 54 | 72 61 70 54 79 70 65 09 |p).{...T|rapType.|
|000002f0| 74 54 79 70 65 20 3b 0d | 0d 09 74 54 79 70 65 20 |tType ;.|..tType |
|00000300| 3d 20 47 65 74 54 72 61 | 70 54 79 70 65 28 74 68 |= GetTra|pType(th|
|00000310| 65 54 72 61 70 29 20 3b | 0d 09 69 66 20 28 74 54 |eTrap) ;|..if (tT|
|00000320| 79 70 65 20 3d 3d 20 54 | 6f 6f 6c 54 72 61 70 29 |ype == T|oolTrap)|
|00000330| 0d 09 74 68 65 54 72 61 | 70 20 3d 20 74 68 65 54 |..theTra|p = theT|
|00000340| 72 61 70 20 26 20 30 78 | 30 37 46 46 20 3b 0d 09 |rap & 0x|07FF ;..|
|00000350| 69 66 20 28 74 68 65 54 | 72 61 70 20 3e 3d 20 4e |if (theT|rap >= N|
|00000360| 75 6d 54 6f 6f 6c 62 6f | 78 54 72 61 70 73 28 29 |umToolbo|xTraps()|
|00000370| 29 0d 09 09 74 68 65 54 | 72 61 70 20 3d 20 5f 55 |)...theT|rap = _U|
|00000380| 6e 69 6d 70 6c 65 6d 65 | 6e 74 65 64 20 3b 0d 0d |nimpleme|nted ;..|
|00000390| 09 72 65 74 75 72 6e 20 | 28 4e 47 65 74 54 72 61 |.return |(NGetTra|
|000003a0| 70 41 64 64 72 65 73 73 | 28 74 68 65 54 72 61 70 |pAddress|(theTrap|
|000003b0| 2c 20 74 54 79 70 65 29 | 20 21 3d 0d 09 09 09 4e |, tType)| !=....N|
|000003c0| 47 65 74 54 72 61 70 41 | 64 64 72 65 73 73 28 5f |GetTrapA|ddress(_|
|000003d0| 55 6e 69 6d 70 6c 65 6d | 65 6e 74 65 64 2c 20 54 |Unimplem|ented, T|
|000003e0| 6f 6f 6c 54 72 61 70 29 | 29 20 3b 0d 7d 0d 0d 00 |oolTrap)|) ;.}...|
|000003f0| 00 00 00 00 00 00 00 00 | 00 00 00 00 00 00 00 00 |........|........|
|00000400| 00 00 01 00 00 00 01 4c | 00 00 00 4c 00 00 00 32 |.......L|...L...2|
|00000410| 54 49 4d aa 54 49 4d 38 | 03 00 00 00 00 00 00 0b |TIM.TIM8|........|
|00000420| 19 04 04 00 0b 01 54 49 | 4d aa 54 49 4d 61 01 00 |......TI|M.TIMa..|
|00000430| 0f 54 72 61 70 41 76 61 | 69 6c 61 62 6c 65 2e 63 |.TrapAva|ilable.c|
|00000440| 02 00 00 00 50 61 72 74 | 53 49 54 78 00 00 00 00 |....Part|SITx....|
|00000450| 00 00 50 61 72 74 53 49 | 54 78 00 00 00 00 00 00 |..PartSI|Tx......|
|00000460| 00 00 00 00 00 00 00 00 | 00 00 00 00 00 00 00 00 |........|........|
|00000470| 00 00 aa e3 fe e0 00 00 | 00 00 00 00 01 7e 54 49 |........|.....~TI|
|00000480| 4d aa 54 49 4d 6d 02 00 | 00 00 00 00 00 0b 25 04 |M.TIMm..|......%.|
|00000490| 02 00 0b 01 54 49 4d aa | 54 49 4d 6d 03 00 00 00 |....TIM.|TIMm....|
|000004a0| 00 00 00 0b 27 04 04 00 | 0b 01 54 49 4d aa 54 49 |....'...|..TIM.TI|
|000004b0| 4d 6d 04 00 00 00 00 00 | 00 0b 2b 04 00 40 0b 01 |Mm......|..+..@..|
|000004c0| 54 49 4d aa 54 49 4d 6d | 05 00 00 00 00 00 00 0b |TIM.TIMm|........|
|000004d0| 2b 44 00 80 0b 01 54 49 | 4d aa 54 49 4d 6d 06 00 |+D....TI|M.TIMm..|
|000004e0| 00 00 00 00 00 0b 2b c4 | 01 00 0b 01 54 49 4d aa |......+.|....TIM.|
|000004f0| 70 61 75 6c ff 00 00 00 | 00 00 00 0b 2c c4 01 00 |paul....|....,...|
|00000500| 00 00 00 48 00 09 4d 6f | 6e 61 63 6f 00 00 00 00 |...H..Mo|naco....|
|00000510| 00 00 00 00 00 00 00 00 | 00 00 00 00 00 00 00 00 |........|........|
|00000520| 00 00 00 00 00 00 00 03 | 00 04 00 51 00 09 02 6c |........|...Q...l|
|00000530| 02 7c 00 51 00 09 02 6c | 02 7c aa c0 da ec 00 00 |.|.Q...l|.|......|
|00000540| 02 3e 00 00 02 63 00 00 | 00 74 01 00 00 00 01 00 |.>...c..|.t......|
|00000550| 00 00 01 4c 00 00 00 4c | 00 00 00 32 01 4c 6b 08 |...L...L|...2.Lk.|
|00000560| 3b dc 00 00 00 1c 00 32 | 00 00 4d 50 53 52 00 00 |;......2|..MPSR..|
|00000570| 00 0a 03 ed ff ff 00 00 | 00 00 00 00 00 00 00 00 |........|........|
+--------+-------------------------+-------------------------+--------+--------+